package cn.zbmao.web.Timer;

import cn.zbmao.web.util.DateUtil;
import cn.zbmao.web.util.mail.DailyMail;
import org.apache.log4j.Logger;

import java.util.Date;
import java.util.TimerTask;

public class CrmDataTimerTasker extends TimerTask{
//    打印日志
	private static Logger log= Logger.getLogger(CrmDataTimerTasker.class);

    /**
     * 像用户推送最新招标信息的邮件
     */
	@Override
	public void run() {
		log.info("开始向用户推送邮件,时间："+ DateUtil.getDateToStr(new Date()));
		DailyMail.doUserDailyMail();
		log.info("向用户推送邮件结束，时间："+ DateUtil.getDateToStr(new Date()));
	}
}
